package com.sf.strategy;

/**
 * @author 埔枘
 * @date 2019/12/02
 **/
public class LoginTest {
    public static void main(String[] args) {
        LoginMethodContext loginMethodContext = new LoginMethodContext(new QQLoginMethod());
        loginMethodContext.login("zhangsan","123456");

        LoginMethodContext loginMethod = new LoginMethodContext(new WeixinLoginMethod());
        loginMethod.login("zhangsan","123456");
    }
}
